package com.example.cloud.model;

import lombok.Data;

/**
 * 用户信息
 *
 * @author tongyufu
 */
@Data
public class UserInfo {

    private Integer id;
    private String  name;

    /**
     * 无参
     */
    public UserInfo() {
    }

    /**
     * 含参
     *
     * @param id id
     * @param name 姓名
     */
    public UserInfo(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserInfo [id=" + id + ", name=" + name + "]";
    }

}
